Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2단계 - 사다리 (생성) #2319

Merged
merged 17 commits into from
Apr 8, 2025
Merged

2단계 - 사다리 (생성) #2319

merged 17 commits into from
Apr 8, 2025

Conversation

melodist
Copy link

@melodist melodist commented Apr 4, 2025

이번 단계에서는 기존에 적용하던 원칙을 지키는 것과 더불어 Stream 적용에 집중했습니다.
List 를 그대로 반환하는 대신, 리스트의 크기를 반환하는 메소드와 리스트의 인덱스에 해당하는 원소에 접근하는 메소드를 구현하여 IntStream 을 적용했는데요.
리스트를 그대로 반환하는 것에 비해 객체 내부의 필드에 직접 접근하는 것을 막을 수 있었지만 코드의 양 자체는 늘었고 이것이 정말 효율적인지는 좀 더 생각해볼 여지가 있을 거 같습니다.
감사합니다.

Copy link

@ksy90101 ksy90101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이번 단계도 고생하셨습니다!
구조적인 질문을 드렸으니 한번 확인부탁드립니다~
언제든 궁금한게 있다면 슬랙 DM주새요!

- 상수 추가
- isEmpty -> isBlank
- 상수 추가
- 인터페이스 도입
- LadderLine 리스트 반환 메소드 추가
Copy link

@ksy90101 ksy90101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2단계도 고생많으셨습니다!
3단계에서 뵐게요~

@ksy90101 ksy90101 merged commit ea965c1 into next-step:melodist Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants